package com.itttq.gshop.domain.po;

import java.util.Date;

/** 用户信息表。考虑绑定微信 **/

public class UserInfoPo extends BasePo {
	private static final long serialVersionUID = -9376464879104522L;
	/* 地址 */
	private String address;
	/* 出生日期 */
	private Date birthday;
	/* 创建时间 */
	private Date createTime;
	/* 创建人ID */
	private Integer creatorId;
	/* 邮箱地址 */
	private String email;
	/* 头像 */
	private String head;
	/* 用户状态：1、正常；2、冻结；9、已删除；默认为1。 */
	private Integer status;
	/* 性别：1、男；2、女；3、保密。 */
	private Integer gender;
	
	/* 用户类型：1、普通用户；2、酒坊大使。
普通用户购买商品只能获取购买积分，如果有推广人则推广人获取推广积分；
酒坊大使购买商品，则购买积分和推广积分都归酒坊大使所有。 */
	private Integer type;
	
	private Integer id;
	/* 最后登录IP */
	private String ipLastLogin;
	/* 注册IP，如果是多重IP，考虑都记录下来。作为跟踪使用 */
	private String ipRegister;
	/* 会员等级ID */
	private Long memberLevelId;
	/* 会员等级名称 */
	private String memberLevelName;
	/* 会员积分 */
	private Integer memberScore;
	/* 手机号 */
	private String mobile;
	/* 显示的手机号，中间4位星号 */
	private String mobileDisplay;
	/* 加密方式和pc版一致 */
	private String password;
	/* 真实姓名 */
	private String realname;
	/* Salt值，加密使用 */
	private String salt;
	/* 固定电话 */
	private String telephone;
	/* 数据更新时间 */
	private Date updateTime;
	/* 更新人ID */
	private Integer updaterId;
	/* 登录用户名 */
	private String username;
	/* 推广码，随机生成，6位字母和数字混合 */
	private String promoCode;
	/* 推广人ID，记录是由谁推广 */
	private Integer promoterId;
	/* 推广人名称 */
	private String promoterName;
	/* 微信推广ID */
	private String openid;
	
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getPromoterId() {
		return promoterId;
	}
	public void setPromoterId(Integer promoterId) {
		this.promoterId = promoterId;
	}
	public String getPromoterName() {
		return promoterName;
	}
	public void setPromoterName(String promoterName) {
		this.promoterName = promoterName;
	}
	public String getPromoCode() {
		return promoCode;
	}
	public void setPromoCode(String promoCode) {
		this.promoCode = promoCode;
	}
	public String getHead() {
		return head;
	}
	public void setHead(String head) {
		this.head = head;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Integer getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getIpLastLogin() {
		return ipLastLogin;
	}
	public void setIpLastLogin(String ipLastLogin) {
		this.ipLastLogin = ipLastLogin;
	}
	
	public String getIpRegister() {
		return ipRegister;
	}
	public void setIpRegister(String ipRegister) {
		this.ipRegister = ipRegister;
	}
	
	public Long getMemberLevelId() {
		return memberLevelId;
	}
	public void setMemberLevelId(Long memberLevelId) {
		this.memberLevelId = memberLevelId;
	}
	
	public String getMemberLevelName() {
		return memberLevelName;
	}
	public void setMemberLevelName(String memberLevelName) {
		this.memberLevelName = memberLevelName;
	}
	
	public Integer getMemberScore() {
		return memberScore;
	}
	public void setMemberScore(Integer memberScore) {
		this.memberScore = memberScore;
	}
	
	public String getMobileDisplay() {
		return mobileDisplay;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
		this.mobileDisplay = null == mobile ? "" : mobile.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2");
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public Integer getUpdaterId() {
		return updaterId;
	}
	public void setUpdaterId(Integer updaterId) {
		this.updaterId = updaterId;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
}